package com.ybn.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ybn.entity.VoteItem;
import com.ybn.entity.VoteOption;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface VoteItemMapper extends BaseMapper<VoteItem> {

    @Select("select * from vote_item where VS_ID = #{vsid}")
    public List<VoteItem> findItemById(int vsid);

    @Select("select * from vote_item where VO_ID = #{Void}")
    public List<VoteItem> findItemByVoId(int Void);


}
